<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:param name="contentViewBean"
		value="#{commonContentViewBean.allView[1]}" />
		
	<h:form style="margin:0" id="#{contentViewBean.id}_contentForm">
		<ui:decorate
			template="/layout/iteration/datatable/sino-datatable-single-template.xhtml">
			<ui:param name="compId" value="#{contentViewBean.id}" />
			<ui:param name="compViewBean" value="#{contentViewBean}" />
			<ui:param name="compShowIndex" value="true" />
			<ui:param name="compOnRowSelectUpdate" value="" />

			<ui:define name="compButtons">
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','查看内容','600','500','icons/cog_add.png','view','publish-scene','content-view');"
					title="查看内容" image="ui-icon-disk" value="查看">
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','新建内容','700','550','icons/cog_add.png','add','publish-scene','content-add');"
					title="新建内容" image="ui-icon-disk" value="新建">
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','编辑内容','700','550','icons/cog_edit.png','edit','publish-scene','content-edit');"
					title="编辑内容" image="ui-icon-disk" value="编辑">
				</p:commandButton>
				<p:commandButton
					actionListener="#{articleContentAction.delete}"
					onstart="if(confirm('确认要删除吗？')){return true;}else{return false;}"
					update="#{contentViewBean.id}_contentForm"
					title="删除内容" image="ui-icon-disk" value="删除">
					<h:inputHidden value="#{contentViewBean.id}" />
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','','450','360','icons/cog_add.png','excel','org-manage-scene','user-add');"
					title="导出Exel" image="ui-icon-disk" value="导出Exel">
					
				</p:commandButton>
			</ui:define>
		</ui:decorate>
	</h:form>
</ui:composition>